<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*, distribuidos.servlet.*"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.o0rg/TR/html4/loose.dtd">
<html>
<head>
<title>index.gif</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body bgcolor="#ffffff">
	<div align="center" style="padding-top: 80px;">
		<form id="ingreso" name="ingreso" method="post" action="LoginServlet">
			<input type="hidden" name="tipo" value="ingreso">
			<table cellpadding="0" cellspacing="0" border="0" width="500"
				align="center">
				<tr>
					<td colspan="2"><img src="images/loguin.png" width="500"
						height="139" />					</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" align="center">&nbsp;</td>
				</tr>
				
                <tr bgcolor="#FFFFFF">
                <br><b><%String aviso=(String)session.getAttribute("anunciol"); 
                       
                          if( aviso==null) {
                        	  aviso="";
                          }  if(aviso.equals("")){
                        	  aviso="";
                          }
                          String estado = (String)request.getAttribute("id");  %>
                          </b><br/>
					<td class="normal" align="center" colspan="2"><%= aviso %></td>
                </tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" align="center">&nbsp;</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td class="normal" align="right">Ingrese Usuario:</td>
					<td><input type="text" name="usuario1" id="usuario1" class="standardTextMedium" />					</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td class="normal" align="right">Ingrese Contraseña:</td>
					<td><input type="password" name="contra1" id="contra1" class="standardTextMedium" />					</td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td class="normal" align="right">Repita Contraseña:</td>
				  <td><input type="password" name="contra2" id="contra2" class="standardTextMedium" /></td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" align="center"><input name="tipo1" type="hidden"  value="<%=estado%>"  id="tipo1" size="1" /></td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" align="center">
					<input type="submit" class="aceptarButton" value="" /> 
					<input type="button" class="cancelarButton" value="" /></td>
				</tr>
				<tr bgcolor="#FFFFFF">
					<td colspan="2" align="center">&nbsp;</td>
				</tr>
			</table>
		</form>
	</div>
</body>
</html>
